package com.imooc.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * <h1></h1>
 *
 * @author : dzj
 * @create: 2022-02-14 21:29
 */
@Data
@ApiModel(value = "用户对象BO",description = "从客户端由用户传入的数据, 封装在此entity中")
public class UserBo {
    @NotBlank
    @ApiModelProperty(value = "用户名",example = "imooc")
    private String username;
    @NotBlank
    @Length(min = 6,max = 20)
    @ApiModelProperty(value = "密码",required = true,example = "adsfefe")
    private String password;
    @NotBlank
    @ApiModelProperty("确认密码")
    private String confirmPassword;
}
